<?php

declare(strict_types=1);

namespace app\model;

use think\model\concern\SoftDelete;

/**
 * 
 *
 * @mixin \think\Model
 * @property int $id
 * @property int $user_id dmj用户id 关联dmj_users
 * @property string $nickname
 * @property string $avatar
 * @property string $out_user_id 外部用户id  比如openid
 * @property string $unionid
 * @property string $mobile
 * @property string $app_id 平台id
 * @property bool $platform 归属平台 1，代理商平台，此时app_id对应代理商id
 * @property string $created_at
 * @property string $updated_at
 * @property string $deleted_at
 * @property-read \app\model\DmjUsers $user
 * @method static \think\db\Query onlyTrashed()
 * @method static \think\db\Query withTrashed()
 */
class DmjPlatformUsers extends CommonModel
{
    use SoftDelete;

    public function user()
    {
        return $this->belongsTo(DmjUsers::class, 'user_id');
    }
}
